package com.pig4cloud.pig.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pig.admin.api.entity.InfusionCore;
import com.pig4cloud.pig.admin.api.resp.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InfusionCoreMapper extends BaseMapper<InfusionCore> {

	Integer getSeatByTime(@Param("seatId") String seatId,
		  @Param("startTime")String startTime, @Param("endTime")String endTime);

	List<ToBeInfusedList> getToBeInfused(@Param("infusionDate") String infusionDate);

	List<InfusionSeatList> getSeats(@Param("infusionDate") String infusionDate);

	InfusionCore checkSeatInfusion(@Param("today") String today,@Param("seatId") String seatId);

	Page<InfusionCoreListResp> pageVo(@Param("page") Page<InfusionCore> page,@Param("infusionDate") String infusionDate);

	List<InfusionCoreStatisticsDTO> statistics(@Param("infusionDate")String infusionDate);

	List<InfusionCore> getCoreListByDate(@Param("infusionDate")String infusionDate);

}
